<%--
  Created by IntelliJ IDEA.
  User: ChenYu
  Date: 2017-05-27
  Time: 14:05
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@include file="/static/common/taglib.jsp" %>
<html>
<head>
    <%@include file="../public/webApp.jsp" %>
</head>
<body>
<div class="main">
    <div class="tt">
        <span>武汉动车段乘务车间出乘安全风险提示</span>
    </div>
    <c:forEach var="tmp" items="${ts}">
        <c:if test="${tmp.num eq 'baseInfo'}">
            <blockquote class="layui-elem-quote">基本信息</blockquote>
            <table class="layui-table">
                <tr>
                    <td class="tdbg">随车机械师</td>
                    <td>${li.userName}</td>
                    <td class="tdbg">时间</td>
                    <td>${li.planDate}</td>
                </tr>
                <tr>
                    <td class="tdbg">出库车次</td>
                    <td>${li.trainCode}</td>
                    <td class="tdbg">车组号</td>
                    <td>${li.trainNum}</td>
                </tr>
            </table>
        </c:if>
        <c:if test="${tmp.num eq 'roadInfo'}">
            <blockquote class="layui-elem-quote">本次交路信息</blockquote>
            <div class="layui-field-box">
                <span style="color: #1940ff;">${li.roadName}</span>
            </div>
        </c:if>
        <c:if test="${tmp.num eq 'weatherInfo'}">
            <blockquote class="layui-elem-quote">本次交路信息</blockquote>
            <table class="layui-table">
                <thead>
                <tr>
                    <th>站点</th>
                    <th>天气</th>
                    <th>气温</th>
                    <th>风力</th>
                </tr>
                </thead>
                <tbody>
                <c:forEach var="sw" items="${sws}">
                    <tr align="center">
                        <td class="tdbg">${sw.stationName}</td>
                        <td>${sw.weatherCondition}</td>
                        <td>${sw.temp}℃</td>
                        <td>${sw.windType}</td>
                    </tr>
                </c:forEach>
                </tbody>
            </table>
        </c:if>
        <c:if test="${tmp.num eq '-'}">
            <blockquote class="layui-elem-quote">${tmp.title}</blockquote>
            <div class="layui-field-box">
                    ${tmp.contentHtml}
            </div>
        </c:if>
    </c:forEach>
</div>
</body>
</html>
